package com.icity.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 合伙人实体类
 * @author Lyn
 * 
 */
public class PartnerMsg {
	
	private static final long serialVersionUID = -1765020113386166368L;
	//注册信息
	private String unique_code;//唯一标识
	private String parent_code;//父级code
	private String phone;//电话
	private String pwd;//自媒体明文密码
	private String password;//自媒体密文密码（MD5加密2次）
	private Integer enter_type;//入驻类型  1.个人；2.企业；3.政府；4.其他组织 0.未选择
	//基本信息
	@NotEmpty(message="合伙人名称不能为空")
	//@Length(min=2, max=10, message="2-10个字符")
	private String name;//合伙人名称
	
	//@NotEmpty(message="头像不能为空")
	private String poster;//头像
	
	@NotEmpty(message="简介不能为空")
	//@Length(max=100, message="2-10个字符")
	private String instruction;//简介
	
	//运营者信息
	@NotEmpty(message="运营者姓名不能为空")
	private String operate_name;//运营者姓名
	
	@NotEmpty(message="运营者身份证号不能为空")
	private String id_card;//运营者身份证号
	
	//@NotEmpty(message="运营者身份证照片不能为空")
	private String id_card_img;//运营者身份证照片
	
	@NotEmpty(message="运营者电话不能为空")
	private String operate_phone;//运营者电话
	
	@NotEmpty(message="运营者邮箱不能为空")
	private String operate_email;//运营者邮箱
	
	@NotEmpty(message="请选择省")
	private String region_province_id;//所在地 省
	
	@NotEmpty(message="请选择市")
	private String region_city_id;//所在地 市
	
	@NotEmpty(message="请选择区／县")
	private String region_area_id;//所在地 区
	
	//企业／组织／政府信息
	private String organization_name;//组织机构名称
	private Integer organization_level;//机构级别: 1.中央级；2.省级；3.地市级；4.县级；5.乡镇级 
	private String organization_img;//组织机构代码证
	private String organization_address;//组织机构地址
	//其它字段
	private Integer status;//审核状态 0：待审核；1：审核拒绝；2：审核通过
	private Integer is_use;//是否启用  0.禁用；1.启用
	private Integer level;//级别
	private Integer is_partner_or_user;//用户类型：1.合伙人；2.普通后台用户
	private Integer platform_type;//1.APP；2.H5；3.PC；4.TV大屏
	private Date create_time;//创建时间
	private Date update_time;//修改时间
	
	//业务需要，数据库无需添加
	private String code;//验证码
	private String role_code;//当前登录合伙人的角色code
	private String role_name;//当前登录合伙人的角色名称
	private Integer is_system;//是否是系统级 1.是 ；2.不是
	private String region_city_name;//所在地 市
	public Integer getIs_partner_or_user() {
		return is_partner_or_user;
	}
	public void setIs_partner_or_user(Integer is_partner_or_user) {
		this.is_partner_or_user = is_partner_or_user;
	}
	public String getUnique_code() {
		return unique_code;
	}
	public void setUnique_code(String unique_code) {
		this.unique_code = unique_code;
	}
	public String getParent_code() {
		return parent_code;
	}
	public void setParent_code(String parent_code) {
		this.parent_code = parent_code;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public Integer getEnter_type() {
		return enter_type;
	}
	public void setEnter_type(Integer enter_type) {
		this.enter_type = enter_type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPoster() {
		return poster;
	}
	public void setPoster(String poster) {
		this.poster = poster;
	}
	public String getInstruction() {
		return instruction;
	}
	public void setInstruction(String instruction) {
		this.instruction = instruction;
	}
	public String getRegion_province_id() {
		return region_province_id;
	}
	public void setRegion_province_id(String region_province_id) {
		this.region_province_id = region_province_id;
	}
	public String getRegion_city_id() {
		return region_city_id;
	}
	public void setRegion_city_id(String region_city_id) {
		this.region_city_id = region_city_id;
	}
	public String getRegion_area_id() {
		return region_area_id;
	}
	public void setRegion_area_id(String region_area_id) {
		this.region_area_id = region_area_id;
	}
	public String getOperate_name() {
		return operate_name;
	}
	public void setOperate_name(String operate_name) {
		this.operate_name = operate_name;
	}
	public String getId_card() {
		return id_card;
	}
	public void setId_card(String id_card) {
		this.id_card = id_card;
	}
	public String getId_card_img() {
		return id_card_img;
	}
	public void setId_card_img(String id_card_img) {
		this.id_card_img = id_card_img;
	}
	public String getOperate_phone() {
		return operate_phone;
	}
	public void setOperate_phone(String operate_phone) {
		this.operate_phone = operate_phone;
	}
	public String getOperate_email() {
		return operate_email;
	}
	public void setOperate_email(String operate_email) {
		this.operate_email = operate_email;
	}
	public String getOrganization_name() {
		return organization_name;
	}
	public void setOrganization_name(String organization_name) {
		this.organization_name = organization_name;
	}
	public Integer getOrganization_level() {
		return organization_level;
	}
	public void setOrganization_level(Integer organization_level) {
		this.organization_level = organization_level;
	}
	public String getOrganization_img() {
		return organization_img;
	}
	public void setOrganization_img(String organization_img) {
		this.organization_img = organization_img;
	}
	public String getOrganization_address() {
		return organization_address;
	}
	public void setOrganization_address(String organization_address) {
		this.organization_address = organization_address;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getIs_use() {
		return is_use;
	}
	public void setIs_use(Integer is_use) {
		this.is_use = is_use;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getPlatform_type() {
		return platform_type;
	}
	public void setPlatform_type(Integer platform_type) {
		this.platform_type = platform_type;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getRole_code() {
		return role_code;
	}
	public void setRole_code(String role_code) {
		this.role_code = role_code;
	}
	public String getRole_name() {
		return role_name;
	}
	public void setRole_name(String role_name) {
		this.role_name = role_name;
	}
	public Integer getIs_system() {
		return is_system;
	}
	public void setIs_system(Integer is_system) {
		this.is_system = is_system;
	}
	public String getRegion_city_name() {
		return region_city_name;
	}
	public void setRegion_city_name(String region_city_name) {
		this.region_city_name = region_city_name;
	}
}
